<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="150dip"
    android:padding="6dip"
    android:background="@drawable/custom_card_layout">

    <ImageView
        android:id="@+id/icon"
        android:layout_width="100dp"
        android:layout_height="150dip"
        android:layout_alignParentBottom="true"
        android:layout_alignParentTop="true"
        android:layout_marginRight="6dip"
        android:scaleType="fitXY"
        android:adjustViewBounds="true" />

    <TextView
        android:id="@+id/title"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_alignParentRight="true"
        android:layout_toRightOf="@id/icon"
        android:layout_marginBottom="8dip"
        android:ellipsize="end"
        android:maxLines="1"
        android:textStyle="bold"
        android:textSize="20sp"/>

    <TextView
        android:id="@+id/description"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/title"
        android:layout_alignParentRight="true"
        android:layout_alignWithParentIfMissing="true"
        android:layout_toRightOf="@id/icon"
        android:layout_marginBottom="5dip"
        android:ellipsize="end"
        android:maxLines="3" />

    <TextView
        android:id="@+id/genre"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/description"
        android:layout_alignParentRight="true"
        android:layout_alignWithParentIfMissing="true"
        android:layout_toRightOf="@id/icon"
        android:layout_marginBottom="5dip"
        android:ellipsize="end"
        android:maxLines="1" />

    <RatingBar
        android:id="@+id/rating"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/genre"
        android:layout_toRightOf="@id/icon"
        android:layout_marginBottom="5dip"
        style="?android:attr/ratingBarStyleSmall"
        android:numStars="5"
        android:rating="3.5"/>

</RelativeLayout>
